public class work2 {
    public static void main(String args[]) {
        char word1 = 'a';
        char word2 = 'z';
        char temp = '*';
        int m = (int) word1, n = (int) word2;
        int i;
        for (i = m; i <= n; i++) {
            temp = (char) i;
            System.out.println(temp);
        }
    }
}
